﻿@*@model IEnumerable<BanDTBLL.san_pham>*@
@model PagedList.IPagedList<BanDTBLL.san_pham>
@{
    ViewBag.Title = "Index";
}
<div class="art-Post-inner">
  <div class="art-PostMetadataHeader">
    <h2 class="art-PostHeader"> <span class="art-PostHeader">Danh sách sản phẩm<a class="hovered" href="#" rel="bookmark" title="Hovered Hyperlink"></a></span> </h2>
    <div class="art-PostHeaderIcons art-metadata-icons"><a href="#" title="View user profile."></a> </div>
  </div>
  <div class="art-PostContent"> 
  <div style="border-style: groove;color:blue; -moz-border-radius: 1em;
        -webkit-border-radius: 10px;">
 <center>
 <br />
             @using (Html.BeginForm("Index", "TimKiem", FormMethod.Get))
             {
                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>Tên sản phẩm</td>
                    <td>@Html.TextBox("SearchTen", ViewBag.CurrentFilter as string)</td>
                </tr>
                <tr>
                    <td width="89">Từ Giá:</td>
                    <td width="282">
                        <select name="tugia" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="1">1 Triệu</option>
                            <option value="2">2 Triệu</option>
                            <option value="4">4 Triệu</option>
                            <option value="6">6 Triệu</option>
                            <option value="8">8 Triệu</option>
                            <option value="10">10 Triệu</option>
                            <option value="12">12 Triệu</option>
                        </select>
                    </td>
                    <td width="6"></td>
                    <td width="62">Đến Giá:</td>
                    <td width="232">
                        <select name="dengia" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="16">16 Triệu</option>
                            <option value="18">18 Triệu</option>
                            <option value="20">20 Triệu</option>
                            <option value="22">22 Triệu</option>
                            <option value="24">24 Triệu</option>
                            <option value="26">26 Triệu</option>
                            <option value="28">28 Triệu</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Máy Ảnh:</td>
                    <td >
                         <select name="mayanh" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="CIF">CIF(352x288 pixels)</option>
                            <option value="SVGA">SVGA(800x600 pixels)</option>
                            <option value="VGA">VGA(480x640 pixels)</option>
                            <option value="1.0 MP">1.0 MP(1152x864 pixels)</option>
                            <option value="1.3 MP">1.3 MP(1280x1024 pixels)</option>
                            <option value="2.0 MP">2.0 MP(1600x1200 pixels)</option>
                            <option value="3.0 MP">3.0 MP(2048x1536 pixels)</option>
                            <option value="3.15 MP">3.15 MP(2048x1536 pixels)</option>
                            <option value="3.2 MP">3.2 MP(2048x1536 pixels)</option>
                            <option value="5.0 MP">5.0 MP(2592x1944 pixels)</option>
                            <option value="8.0 MP">8.0 MP(3264x2448 pixels)</option>
                            <option value="10 MP">10 MP</option>
                            <option value="12 MP">12 MP(4000x3000 pixels)</option>
                            <option value="14 MP">14 MP</option>
                            <option value="16 MP">16 MP</option>
                        </select>
                    </td>
                    <td></td>
                    <td>Wifi:</td>
                    <td>
                     <select name="wifi" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="Có">Có</option>
                            <option value="Không">Không</option>
                            <option value="802.11">Wifi 802.11b</option>
                            <option value="802.11b/g">Wifi 802.11b/g</option>
                            <option value="802.11 UPNP">Wifi 802.11b/g,UPnP Technology</option>
                            <option value="802b/g/n">Wifi 802.11b/g/n</option>
                            <option value="3.0 MP">Wifi 802.11b/g/n,UPnP Technology</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Bluetooth:</td>
                    <td>
                     <select name="bluetooth" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="Có">Có</option>
                            <option value="Không">Không</option>
                            <option value="V1.1">V1.1</option>
                            <option value="V2.0">V2.0</option>
                            <option value="V2.0 A2DP">V2.0 A2DP</option>
                            <option value="V2.1">V2.1 A2DP</option>
                            <option value="V3.0">V3.0</option>
                            <option value="V3.0 A2DP">V3.0 A2DP</option>
                        </select>
                    </td>
                    <td></td>
                    <td>Cảm Ứng:</td>
                    <td>
                    <select name="camung" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="Có">Có</option>
                            <option value="Không">Không</option>
                            <option value="CUDT">Cảm Ứng Điện Trở</option>
                            <option value="CUDD">Cảm Ứng Điện Dung</option>
                            <option value="CUDDDD">Cảm Ứng Điện Dung, Đa Điểm</option>
                            <option value="DaDiem">Đa Điểm</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Hệ Điều Hành:</td>
                    <td>
                     <select name="hedieuhanh" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="Không">Không</option>
                            <option value="Android 2.3">Android 2.3</option>
                            <option value="Android OS v1.5">Android OS v1.5</option>
                            <option value="Android OS v1.6">Android OS v1.6</option>
                            <option value="Android OS v2.1">Android OS v2.1</option>
                            <option value="Android OS v2.3">Android OS v2.3</option>
                            <option value="Android OS v2.3">Android OS v2.3</option>
                            <option value="Android 2.2 F">Android 2.2 Froyo</option>
                            <option value="Android 3.0">Android 3.0</option>
                            <option value="Android 3.2">Android 3.2</option>
                            <option value="Bada">Bada</option>
                            <option value="MWM6.1P">Microsoft Windows Mobile 6.1 Professional</option>
                            <option value="MWM6.5P">Microsoft Windows Mobile 6.5 Professional</option>
                            <option value="SA">Symbian Anna</option>
                            <option value="SAB">Symbian Belle OS</option>
                            <option value="SA ^3">Symbian Anna ^3</option>
                            <option value="SA s60 5th">Symbian Series 60, 5th</option>
                            <option value="SAOS9.2">Symbian OS 9.2, S60 rel, 3.2</option>
                            <option value="SAOS9.2">Symbian OS 9.2, S60 rel, 3.1</option>
                            <option value="SAOS9.3">Symbian OS 9.3, S60 rel, 3.2</option>
                            <option value="SAOSv9.4">Symbian OS v9.4, Series 60 rel. 5</option>
                            <option value="iOS4">iOS4</option>
                            <option value="iOS5">iOS5</option>
                            <option value="MGH">MeeGo 1.2 Harmattan</option>                           
                        </select>
                    </td>
                    <td></td>
                    <td>Danh Bạ:</td>
                    <td>
                    <select name="danhba" style="width: 80px">
                            <option value="-1">Tất cả</option>
                            <option value="100">100 Số</option>
                            <option value="200">200 Số</option>
                            <option value="250">250 Số</option>
                            <option value="300">300 Số</option>
                            <option value="500">500 Số</option>
                            <option value="800">800 Số</option>
                            <option value="1000">1000 Số</option>
                            <option value="2000">2000 Số</option>
                            <option value="Không Giới Hạn">Không Giới Hạn</option>
                        </select>
                    </td>
                </tr>
                <tr>
                <td><span class="art-button-wrapper">
                                                	<span class="l"> </span>
                                                	<span class="r"> </span>
                                                	<input class="art-button" type="submit" name="search" value="Tìm kiếm"/>
                                                </span></td>
                </tr>
            </table>
             }       
        </div>
        </center>  
  </div>
  <div class="load_san_pham">
    <h2 class="tieude">Kết Quả</h2>
    @foreach (var item in Model)
    {
    
        <div class="san_pham">
            <img src="@Url.Content("~/Content/Images/sanpham/" + item.hinh)" alt="hinh" /><br />
            <label>Tên :</label> <span>@item.ten</span> <br />
             <label>Giá</label><span>@item.donGia</span> VNĐ <br />
             <p style="text-align:center">
                <input type="submit" value="Mua hàng" class="button" /> <input type="button" value="Chi tiết" class="button" />
             </p>
        </div>
    }
</div>
<div>
    Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber)
    of @Model.PageCount
     
    @if (Model.HasPreviousPage)
    {
        @Html.ActionLink("<<", "Index", new { page = 1, sortOrder = ViewBag.CurrentSort, currentFilter=ViewBag.CurrentFilter, tugia=ViewBag.TuGia, dengia=ViewBag.DenGia, mayanh=ViewBag.MayAnh, wifi=ViewBag.WiFi, bluetooth = ViewBag.Bluetooth, camung=ViewBag.CamUng, hedieuhanh=ViewBag.HeDieuHanh, danhba=ViewBag.DanhBa })
        @Html.Raw(" ");
        @Html.ActionLink("< Prev", "Index", new { page = Model.PageNumber - 1, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, tugia = ViewBag.TuGia, dengia = ViewBag.DenGia, mayanh = ViewBag.MayAnh, wifi = ViewBag.WiFi, bluetooth = ViewBag.Bluetooth, camung = ViewBag.CamUng, hedieuhanh = ViewBag.HeDieuHanh, danhba = ViewBag.DanhBa })
    }
    else
    {
        @:<<
        @Html.Raw(" ");
        @:< Prev
    }
     
    @if (Model.HasNextPage)
    {
        @Html.ActionLink("Next >", "Index", new { page = Model.PageNumber + 1, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, tugia = ViewBag.TuGia, dengia = ViewBag.DenGia, mayanh = ViewBag.MayAnh, wifi = ViewBag.WiFi, bluetooth = ViewBag.Bluetooth, camung = ViewBag.CamUng, hedieuhanh = ViewBag.HeDieuHanh, danhba = ViewBag.DanhBa })
        @Html.Raw(" ");
        @Html.ActionLink(">>", "Index", new { page = Model.PageCount, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, tugia = ViewBag.TuGia, dengia = ViewBag.DenGia, mayanh = ViewBag.MayAnh, wifi = ViewBag.WiFi, bluetooth = ViewBag.Bluetooth, camung = ViewBag.CamUng, hedieuhanh = ViewBag.HeDieuHanh, danhba = ViewBag.DanhBa })
    }
    else
    {
        @:Next >
        @Html.Raw(" ")
        @:>>
    }
</div>
  <div class="cleared"></div>
  <div class="art-PostMetadataFooter">
    <div class="art-PostFooterIcons art-metadata-icons"> <img class="art-metadata-icon" src="images/PostCategoryIcon.png" width="11" height="9" alt="" /> Category: <a href="#" title="Read user&#039;s latest blog entries." class="blog_usernames_blog">user&#039;s blog</a> | <img class="art-metadata-icon" src="images/PostTagIcon.png" width="18" height="18" alt="" /> Tags: <a href="#" title="link">link</a>, <a href="#" title="visited link" class="visited">visited</a>, <a href="#" title="hovered link" class="hover">hovered</a> | <img class="art-metadata-icon" src="images/PostCommentsIcon.png" width="18" height="18" alt="" /> <a href="#" title="Share your thoughts and opinions related to this posting." class="comment_add">Add new comment</a> </div>
  </div>
</div>
